﻿using System;
using System.Collections.Generic;

namespace FitnessCenter.DataAccessLayer.Repositories.Interfaces
{
    public interface IRepository<T> where T : class
    {
        IEnumerable<T> GetAll();

        T GetByID<TKey>(TKey id);

        IEnumerable<T> GetByPredicate(Func<T, bool> predicate);

        void Save(T model);

        void Delete(T model);
    }
}
